package za.ac.wits.elen7045.scraper;

import za.ac.wits.elen7045.scraper.interfaces.BaseScraper;
import za.ac.wits.elen7045.scraper.models.ScraperSession;

/*
 * This class is the main class that provides the functionality to scrape sites. The constructor takes a parameter 
 * for the baseScraper which will have the unique code to scrape data from external sites.
 */
public class ScraperService {

	private ScraperSession session;
	private BaseScraper scraper;
	
	public ScraperService(BaseScraper scraperInterface) {
		this.scraper = scraperInterface;
	}

	public void ScrapeSite() {
		scraper.scrapeSite();
	}

	public ScraperSession getScrapedSession() {
		return session;
	}

}
